<template>
  <div type="flex" class="form__footer-wrapper">
    <el-button icon="el-icon-plus" @click="addData">{{ title }}</el-button>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: '添加'
    }
  },
  methods: {
    addData() {
      this.$emit('add')
    }
  }
}
</script>

<style lang='scss' scoped>
.form__footer-wrapper {
  margin-top: 10px;
  .el-button {
    width: 100%;
    border: 1px dashed #dcdfe6;
  }
}
</style>
